package com.lb.jwitter;
import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import org.hibernate.annotations.ForeignKey;

@Entity
@Table (name="tbl_rangbuoc_hedaotao_nhomhoc")
public class Tbl_RangBuoc_HeDaoTao_NhomHoc implements Serializable {
   private static final long serialVersionUID = -1989579066723007050L;

   private Long id;
   private Tbl_CTDT_HeDaoTao heDaoTaoId = null;
   private String nhomHoc;

   @Id
   @GeneratedValue
   public Long getId() {
	    return id;
   }
   public void setId(Long id) {
	    this.id= id;
   }

   @ManyToOne(fetch=FetchType.EAGER)
   @JoinColumn(name="HeDaoTaoId")
   @ForeignKey(name="FK_tbl_CTDT_HeDaoTao_tbl_RangBuoc_HeDaoTao_NhomHoc")
   public Tbl_CTDT_HeDaoTao getHeDaoTaoId() {
	    return heDaoTaoId;
   }
   public void setHeDaoTaoId(Tbl_CTDT_HeDaoTao heDaoTaoId) {
	    this.heDaoTaoId=heDaoTaoId;
   }

   public String getNhomHoc() {
   	return nhomHoc;
   }
   public void setNhomHoc(String nhomHoc) {
   	this.nhomHoc= nhomHoc;
   }
}//endClass 

